﻿@using BonjourQuotation.UI.Models.PartialModel
@model QuotationAdvancedSearchViewModel


<div >
	@if (Model.MessageAd != null)
	{
	@Html.LabelForModel(Model.MessageAd)
	}
	
	<div style = "margin-left:1px; padding-top:12px; padding-left:20px;">
        <div class="row form-row">
            <div class="col-lg-2">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.AcceptedAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.DropDownListFor(x => x.SelectedAcceptedAd, new SelectList(Model.AcceptedAd, "Value", "Text"), "Select", new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class="col-lg-3" >
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.QuotaCountryAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.DropDownListFor(x => x.SelectedQuotaTypeAd, new SelectList(Model.QuotaCountryAd, "Value", "Text"), "Select", new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class="col-lg-3">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.RegionAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.DropDownListFor(x => x.SelectedRegionAd, new SelectList(Model.RegionAd, "Value", "Text"), "Select", new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class=" col-lg-4" >
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.CustomerIdAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.DropDownListFor(x => x.SelectedCustomerIdAd, new SelectList(Model.CustomerIdAd, "Value", "Text"), "Select", new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
        </div>
		<div class="row form-row" >
			<div class=" col-lg-3">
				<div class="input-group">
					<span class="input-group-addon">@Html.LabelFor(model => model.SeasonAd, new { @class = "table_inputs_SmallPadding2" })</span>
					@Html.DropDownListFor(x => x.SelectedSeasonAd, new SelectList(Model.SeasonAd, "Value", "Text"), "Select", new { @class = "form-control table_inputs_SmallPadding2" })
				</div>
			</div>
            <div class="col-lg-4" >
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.QuotaNameAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.TextBoxFor(model => model.QuotaNameAd, new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class=" col-lg-4">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.EmployeeIdAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.DropDownListFor(x => x.SelectedEmployeeIdAd, new SelectList(Model.EmployeeIdAd, "Value", "Text"), "Select", new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
		</div>
		<div class="row form-row">
			
            <div class=" col-lg-2" >
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.NoNightsAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.TextBoxFor(model => model.NoNightsAd, new { @class = "form-control QuotaOnlyDigits table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class=" col-lg-4" style="width: 29% !important;">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.ArrivalDateFromAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.TextBoxFor(model => model.ArrivalDateFromAd, new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class=" col-lg-3" style="width: 20% !important;">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.ArrivalDateToAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.TextBoxFor(model => model.ArrivalDateToAd, new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
		</div>
		<div class="row form-row">	
            <div class=" col-lg-4" style="width: 28% !important;">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.QuotaDateFromAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.TextBoxFor(model => model.QuotaDateFromAd, new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class=" col-lg-2" style="width: 19% !important;">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.QuotaDateToAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.TextBoxFor(model => model.QuotaDateToAd, new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class=" col-lg-4" style="width: 28% !important;">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.LastUpdateFromAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.TextBoxFor(model => model.LastUpdateFromAd, new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class=" col-lg-2" style="width: 19% !important;">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.LastUpdateToAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.TextBoxFor(model => model.LastUpdateToAd, new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
		</div>
        <div class="row form-row">
            <div class=" col-lg-3 ">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.ArrivalCityAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.DropDownListFor(x => x.SelectedArrivalCityAd, new SelectList(Model.ArrivalCityAd, "Value", "Text"), "Select", new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class=" col-lg-4 " >
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.DepartureCityAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.DropDownListFor(x => x.SelectedDepartureCityAd, new SelectList(Model.DepartureCityAd, "Value", "Text"), "Select", new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class="col-lg-3">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.FreeCalcTypeAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.DropDownListFor(x => x.SelectedFreeCalcTypeAd, new SelectList(Model.FreeCalcTypeAd, "Value", "Text"), "Select", new { @class = "form-control table_inputs_SmallPadding2" })
                </div>
            </div>
            <div class=" col-lg-2" style="width: 15% !important;">
                <div class="input-group">
                    <span class="input-group-addon">@Html.LabelFor(model => model.profitAd, new { @class = "table_inputs_SmallPadding2" })</span>
                    @Html.TextBoxFor(model => model.profitAd, new { @class = "form-control QuotaOnlyDecimalDigits table_inputs_SmallPadding2" })
                </div>
            </div>
        </div>
		<div class="row form-row" style="padding-left:10px;">
            <input type="button" id="AdvancedSearchBtn" onclick="AdvancedSearchBtnClick()" class="btn14 pull-right" value="Search" style="margin-right:15px;">
		</div>
		<div class="row form-row">
			<div id="AdvancedSearchGrid"></div>
		</div>
	</div>
	
</div>